package sctu.edu.java.year2016.team07.nieying.practice.dijiuzhang.Two;

/**
 * Created by Administrator on 2016/5/30 0030.
 */
public class Outstring {
    public static void main(String[] args){
        final String a="my name is nie ying";       //final可用可不用
        Iin b=new Iin(){
              @Override                             //重写匿名内部类
                  public String filter(){
                  String cover=a;
                  cover=cover.replaceAll(" ","");
                  return cover;
              }
        };
        System.out.println("源字符串："+a);
        System.out.println("转换后的字符串:"+b.filter());
    }
}
